% Fixed point in price index P, aggregate domestic spending S, and wage w in model with free entry

function [x_sol, MSE] = DevaluationFixedPoint_FE(param, phi, fc_norm, fx_norm,FXM_norm,FX_norm,FM_norm,fe_norm, SDM,SDXM,zvec,yvec, P, SP,w,Opt_options)

minProb = @(x) FindFixedPoint_FE(x,param, phi, fc_norm, fx_norm,FXM_norm,FX_norm,FM_norm,fe_norm,SDM,SDXM,zvec,yvec);
initial = [P, SP,w];
[x_sol, MSE] = fsolve(minProb,initial,Opt_options);

end